package com.itany.corejava.code08_常用类.练习2;

/**
 * @author MissChen
 * @version 1.0
 * @date 2023 年11月16日 9:34
 */
public enum Hobby {
    READ("读书",100),
    SING("唱歌",10),
    SPORT("篮球",2000);
    private String hobbyName;
    private double spend;

    public String getHobbyName() {
        return hobbyName;
    }

    public void setHobbyName(String hobbyName) {
        this.hobbyName = hobbyName;
    }

    public double getSpend() {
        return spend;
    }

    public void setSpend(double spend) {
        this.spend = spend;
    }

    Hobby(String hobbyName, double spend) {
        this.hobbyName = hobbyName;
        this.spend = spend;
    }
}
